<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/of
        /*
        Array.of(7);       // [7]
        Array.of(1, 2, 3); // [1, 2, 3]

        Array(7);          // [ , , , , , , ]
        Array(1, 2, 3);    // [1, 2, 3]

        */
        let arr1=Array(2);
        console.log(arr1);
        let arr2=Array.of(2);
        console.log(arr2);
    </script>
</body>
</html>